package com.markedquilt.main;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.util.List;
import java.util.Map;

public class testTransfer {
  public static void main(String[] args) {
    Map<String,String> map = Maps.newHashMap();
    map.put("a","test1");
    map.put("b","test2");
    map.put("c","test3");
    Map<String,String> map2 = Maps.newHashMap();
    map2.put("a","testa");
    map2.put("b","testb");
    map2.put("d","testc");
    List<Map<String,String>> list2= Lists.newArrayList();
    list2.add(map);
    list2.add(map2);
    List<String> list3=Lists.transform(list2, s->s.get("a"));
    list3.forEach(s -> System.out.println(s));
  }
}
